home *** CD-ROM | disk | FTP | other *** search
/ cyber.net interactivo 1997 March / inter@ivo 1997-03.iso / wing / timewing.m3_ / timewing.m3
Text File  |  1994-08-13  |  1KB  |  49 lines

  1. DEBUG=YES
  2.  
  3. !if "$(DEBUG)" == "YES"
  4. DEF = -DDEBUG -DSTRICT
  5. CC  = cl386 -c -W3 -Zi -Oxwt $(DEF)
  6. LINK= link32 -map -debug:full -debugtype:cv -out:$(NAME).exe -subsystem:windows
  7. !else
  8. DEF = -DSTRICT
  9. CC  = cl386 -c -W3 -Zi -Oxwt $(DEF)
  10. LINK= link32 -map -out:$(NAME).exe -subsystem:windows
  11. !endif
  12.  
  13. NAME= timewing
  14. RC  = rc
  15.  
  16. OBJDIR = .
  17. OBJ  = $(OBJDIR)\$(NAME).obj $(OBJDIR)\utils.obj
  18. LIBS = gdi32.lib user32.lib comdlg32.lib wing32.lib winmm.lib
  19.  
  20. .cpp{$(OBJDIR)}.obj:
  21.   $(CC) /Fo$*.obj $< 
  22.  
  23. .c{$(OBJDIR)}.obj:
  24.   $(CC) /Fo$*.obj $<
  25.  
  26. goal: $(NAME).exe
  27.  
  28. $(NAME).exe: $(OBJ) $(NAME).res $(NAME).def $(NAME).m32
  29.   $(LINK) @<<
  30.     $(OBJ) $(UTL) $(LIBS) $(NAME).res
  31. <<    
  32.  
  33. $(NAME).res: $(NAME).rc $(NAME).ico
  34.   $(RC) -r $(NAME).rc
  35.  
  36. clean:
  37.     if exist $(NAME).exe  del $(NAME).exe
  38.     if exist *.res  del *.res
  39.     if exist *.err  del *.err
  40.     if exist $(OBJDIR)\*.obj  del $(OBJDIR)\*.obj
  41.     if exist *.map  del *.map
  42.     if exist *.sym  del *.sym
  43.     if exist *.cod  del *.cod
  44.     if exist *.pdb  del *.pdb
  45.  
  46. $(OBJDIR)\utils.obj: ..\utils\utils.c ..\utils\utils.h
  47.   $(CC) /Foutils.obj ..\utils\utils.c
  48.  
  49.